<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>对象的引用</title>
</head>
<body>
    <script>
        let x = 1
        let y = 1
        let z = x
        x == y //true
        x == z //true
        let a1 = [1,2,3]
        let a2 = [1,2,3] 
        let a3 = a1 

        a1 == a2 //false
        let obj1 = {name:'lily'}
        let obj2 = {name:'lily'}
        let obj3 = obj1
        obj1 == obj2 //false
        obj1 == obj3 //true
        obj2.age = 20
        obj1.age // undefined
        obj1.age = 30
        obj2.age //30
        

    </script>
</body>
</html>